<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use App\Jobs\ProcessPodcast;
use Illuminate\Http\Request;

class PodcastController extends Controller
{
    /**
     * Store a new podcast.
     *
     * @param  Request  $request
     * @return string
     */
    /**
     * @OA\Info(title="aaaa", version="v1")
     * @OA\Get(summary="get",path="/get/{id}",tags={"curd"},description="简介",
     *     @OA\Parameter(name="Authorization",in="header",required=true,description="Bearer"),
     *     @OA\Parameter(name="id",in="path",required=true,description="id"),
     *     @OA\Response(response="200", description="获取成功",
     *      @OA\MediaType(
     *          mediaType="application/json",
     *          @OA\Schema(ref="#/components/schemas/Info"),
     *      )
     *     )
     * )
     */
    public function store(Request $request)
    {
        // Create podcast...

        $podcast = new ProcessPodcast("aaa");
        ProcessPodcast::dispatch($podcast);
        return "ddd";
    }
}
